package com.cms.acase.proxy

import android.content.ComponentName
import android.content.Intent
import com.alibaba.android.arouter.facade.annotation.Route
import com.android.baselibrary.base.BaseActivity
import com.cms.acase.R
import com.cms.acase.bean.CaseMainUtils
import com.cms.acase.databinding.ActivityProxyBinding
import kotlin.time.Duration.Companion.milliseconds

/**
 * @author: Mr.You
 * @create: 2023-11-09 15:01
 * @description:
 **/
@Route(path = CaseMainUtils.CASE_START_PROXY)
class ProxyActivity : BaseActivity<ActivityProxyBinding>() {
    override fun getLayoutId(): Int = R.layout.activity_proxy


    override fun initView() {
        //ActivityTools.installActivity()
       // HookTools.hookProxy()
        HookUtil.hookAMS()
        mBinding.btn.setOnClickListener {
          /*  val intent = Intent()
            intent.component = ComponentName("com.cms.acase.proxy", "com.cms.acase.proxy.TargetActivity")
            startActivity(intent)*/
            startActivity(Intent(this,TargetActivity::class.java))
        }

    }

    override fun initListener() {

    }





}